package com.example.myapplication2020315;

import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;

import androidx.appcompat.app.AppCompatActivity;

public class uc3 extends AppCompatActivity {
    private ImageView i1,i2,i3,i4,i5;
    private Button backbutton2;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_uc3);
        i1=findViewById(R.id.i1);
        i2=findViewById(R.id.i2);
        i3=findViewById(R.id.i3);
        i4=findViewById(R.id.i4);
        i5=findViewById(R.id.i5);
        Handler handler1 = new Handler();
        handler1.postDelayed(new Runnable() {
            @Override
            public void run() {
                i1.setImageDrawable(getResources().getDrawable(R.drawable.t016f085ce69355468b));
            }
        }, 1000);
        Handler handler2 = new Handler();
        handler1.postDelayed(new Runnable() {
            @Override
            public void run() {
                i2.setImageDrawable(getResources().getDrawable(R.drawable.t016cefc9d432bd40e0));
            }
        }, 1500);
        Handler handler3 = new Handler();
        handler1.postDelayed(new Runnable() {
            @Override
            public void run() {
                i3.setImageDrawable(getResources().getDrawable(R.drawable.t01fed299f35ad50355));
            }
        }, 2000);
        Handler handler4 = new Handler();
        handler1.postDelayed(new Runnable() {
            @Override
            public void run() {
                i4.setImageDrawable(getResources().getDrawable(R.drawable.t0141fb787fff34c712));
            }
        }, 2500);
        Handler handler5 = new Handler();
        handler1.postDelayed(new Runnable() {
            @Override
            public void run() {
                i5.setImageDrawable(getResources().getDrawable(R.drawable.t013e9aeac70beb3dd6));
            }
        }, 3000);
        backbutton2=findViewById(R.id.backbutton2);
        backbutton2.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(uc3.this,MainActivity.class);
                startActivity(intent);
            }
        });
    }
}
